package com.dazzle.system.entity;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.ForeignKey;


@SuppressWarnings("serial")
@Entity
@Table(name = "sys_images")
public class SysImages implements Serializable {
	private Long imgId;
	private Long userId;
	private String imgName;
	private String imgPath;
	private String imgChildpath;
	private String imgExt;
	private String imgSize;
	private Date uploadDate;
	private String imgDesc;
	
	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	@Column(name = "img_id", unique = true, nullable = false)
	public Long getImgId() {
		return imgId;
	}
	public void setImgId(Long imgId) {
		this.imgId = imgId;
	}
	
	@ForeignKey(name = "")
	@Column(name="user_id")
	public Long getUserId() {
		return userId;
	}
	public void setUserId(Long userId) {
		this.userId = userId;
	}
	
	@Column(name="img_name")
	public String getImgName() {
		return imgName;
	}
	public void setImgName(String imgName) {
		this.imgName = imgName;
	}
	@Column(name="img_path")
	public String getImgPath() {
		return imgPath;
	}
	public void setImgPath(String imgPath) {
		this.imgPath = imgPath;
	}
	@Column(name="img_childpath")
	public String getImgChildpath() {
		return imgChildpath;
	}
	public void setImgChildpath(String imgChildpath) {
		this.imgChildpath = imgChildpath;
	}
	@Column(name="img_ext")
	public String getImgExt() {
		return imgExt;
	}
	public void setImgExt(String imgExt) {
		this.imgExt = imgExt;
	}
	@Column(name="img_size")
	public String getImgSize() {
		return imgSize;
	}
	public void setImgSize(String imgSize) {
		this.imgSize = imgSize;
	}
	@Column(name="upload_date")
	public Date getUploadDate() {
		return uploadDate;
	}
	public void setUploadDate(Date uploadDate) {
		this.uploadDate = uploadDate;
	}
	@Column(name="img_desc")
	public String getImgDesc() {
		return imgDesc;
	}
	public void setImgDesc(String imgDesc) {
		this.imgDesc = imgDesc;
	}
	
	
}
